﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Text;
using BadmintonApp.Entity;

namespace BadmintonApp.BLL.Interface
{
    public interface IRoleBLL
    {
        /// <summary>
        /// 插入角色
        /// </summary>
        /// <param name="rolesInfo">角色信息类</param>
        void InsertRole(TRolesInfo rolesInfo);

        /// <summary>
        /// 更新角色
        /// </summary>
        /// <param name="rolesInfo">角色信息类</param>
        void UpdateRole(TRolesInfo rolesInfo);

        /// <summary>
        /// 删除角色
        /// </summary>
        /// <param name="roleID">角色ID</param>
        void DeleteRole(int roleID);

        /// <summary>
        /// 获取所有的角色
        /// </summary>
        DataSet GetAllRoles();

        /// <summary>
        /// 根据角色名称获取角色
        /// </summary>
        /// <param name="roleName"></param>
        TRolesInfo GetRoleByName(string roleName);
    }
}
